<?php
    include("global.php");
    
    //debug_zval_dump($_POST);
     $text_id = $_POST['text_id'];

     if(mysql_query("delete from articles where id='$text_id'"))
     {
     	 $url = "index.php"; 
     		echo "<script>                           
			alert('成功');
			window.location.href='$url';
			</script>";
     }
     else 
     {
     	  echo "失败";
     }
?>